import qs from "qs"; // 引入qs模块，用来序列化post类型的数据
import { fetch } from "./fetch";

function serializeParam(param) {
    return qs.stringify(param);
}

// login
export function login(param) {
    return fetch({
        url: "/api/common/joke/getJokesByRandom",
        method: "get",
        data: param
    });
}